package com.example.tencent.ext

import com.example.amap.location.bean.LocationInfo
import com.tencent.map.geolocation.TencentLocation

fun TencentLocation.toLocationInfo(): LocationInfo {
    return LocationInfo(name, address, city, latitude, longitude, direction.toFloat())
}